import request from '@/utils/request'

// 获取投诉列表
export const queryComplaintList = (params) => {
    return request({
        url: '/complaint/queryComplaintList',
        method: 'post',
        data: params
    })
}

// 获取投诉详情
export const queryComplaintInfo = (params) => {
    return request({
        url: '/complaint/queryComplaintInfo',
        method: 'get',
        params
    })
}

// 获取投诉列表
export const queryComplaintOverview = () => {
    return request({
        url: '/complaint/queryComplaintOverview',
        method: 'get',
    })
}

// 获取投诉聚合列表
export const queryComplaintCluster = (params) => {
    return request({
        url: '/complaint/queryComplaintCluster',
        method: 'get',
        params
    })
}

// 获取聚合详情
export const queryComplaintListbyIds = (params) => {
    return request({
        url: '/complaint/queryComplaintListbyIds',
        method: 'get',
        params
    })
}
